require(["jquery","api","common"],function($,Api,Common){
  var qms = {
    config: {},
    $container: $(".listCenter"),
    _bindEvent: function () {
      
    },
    _renderViewList: function () {
      var result = Api.getQusetionList();
      if(result.code == "200"){
        let data = result.data;
        for(var i=0;i<data.length;i++){
          var year = new Date(data[i].createdate.time).getFullYear();
          var month = data[i].createdate.month + 1;
          var date = data[i].createdate.date;
          data[i].createdate.newDate = year + "-" + month + "-" + date;
        }
        var html = Common.template("list-tmpl",result,'ing')
        qms.$container.find(".content").append(html);
        qms._bindEvent();
      }
    },
  }
  qms._renderViewList();
})